//
//  RegisterVIew.m
//  TP
//
//  Created by apple on 16/3/23.
//  Copyright © 2016年 姜小琦. All rights reserved.
//

#import "RegisterVIew.h"
#import "UILabel+Custom.h"
#import "UITextField+Custom.h"
#import "JTCSM.h"


#define KSpacingLeft 40
#define kSpacingRight 80
@implementation RegisterVIew
- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.frame = frame;
    }
    return self;
}
- (id)initWithFrame:(CGRect)frame labeTtext:(NSString *)text placeholder:(NSString *)placeholder{
    self = [self initWithFrame:frame];
    if (self) {
      self.textField = [UITextField initWithframe:CGRectMake(110, 0, self.frame.size.width-self.label.frame.size.width-4*KSpacingLeft+45, frame.size.height) backgrandColor:nil placeholder:placeholder textAlignment:NSTextAlignmentRight font:15 texcolor:RGBACOLOR(194, 195, 201, 1)];
        [self.textField setTintColor:RGBACOLOR(120, 130, 140,1)];
        [self.textField setTextColor:[UIColor blackColor]];
        [self.textField setFont:[UIFont systemFontOfSize:14.0f]];
        
        [self addSubview:self.textField];
        
    }
    return self;
}
@end
